from django.conf.urls.defaults import *
from django.contrib.auth.models import User
from profiles.models import Profile


profile_list = {
  'queryset': Profile.objects.all(),
}


urlpatterns = patterns('',
  url(
    regex   = '^(?P<object_id>\d+)/$', # Temporary hack, should be username
    view    = 'django.views.generic.list_detail.object_detail',
    kwargs  = profile_list,
    name    = 'profile_detail',
  ),
  url (
    regex   = '^$',
    view    = 'django.views.generic.list_detail.object_list',
    kwargs  = profile_list,
    name    = 'profile_list',
  ),
)